class Student:
    choice_lst = [
        ('show_courses','查看可选课程'),
        (),()]
    def __init__(self,name):
        self.name = name
        self.courses = []

    def show_courses(self):
        '''查看可选课程'''
        pass

    def select_course(self):
        '''选择课程'''
        pass

    def show_selected_course(self):
        '''查看所选课程'''
        pass

    def exit(self):
        '''退出'''
        pass

class Manager:
    def __init__(self,name):
        self.name = name

    def create_course(self):
        '''创建课程'''
        pass

    def create_student(self):
        '''创建学生'''
        pass

    def show_courses(self):
        '''查看可选课程'''
        pass

    def show_students(self):
        '''查看所有学生'''
        pass

    def show_students_courses(self):
        '''查看所有学生选课情况'''
        pass

    def exit(self):
        '''退出'''
        pass

class Course:

    def __init__(self,name,price,period):
        self.name = name
        self.price = price
        self.period = period
        self.teacher = None


def login():
    pass


def main():
    '''程序入口'''
    pass
# main()

import pickle
# s1 = Student('李业')
# s1.courses.append('python24期')
#
# s2 = Student('骚Q')
# s2.courses.append('Go周末')
# s2.courses.append('Go脱产')
#
#
# with open('Student',mode='wb') as f1:
#     pickle.dump(s1,f1)
#     pickle.dump(s2,f1)

with open('Student',mode='rb') as f2:
    while 1:
        try:
            obj = pickle.load(f2)
            print(obj)
            print(obj.name)
            print(obj.courses)
        except Exception:
            break